package org.qs.webservice.service.impl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.qs.webservice.dao.content.ConBookMapper;
import org.qs.webservice.dao.user.UsBookReviewMapper;
import org.qs.webservice.dao.user.UsBookShelfMapper;
import org.qs.webservice.dao.user.UsUserMapper;
import org.qs.webservice.domain.ConBook;
import org.qs.webservice.domain.UsBookReview;
import org.qs.webservice.domain.UsBookReviewReply;
import org.qs.webservice.domain.UsBookShelf;
import org.qs.webservice.domain.UsUser;
import org.qs.webservice.service.AlipayService;
import org.qs.webservice.service.AuthorService;
import org.qs.webservice.service.IreadMemcacheService;
import org.qs.webservice.util.DateUtil;
import org.qs.webservice.util.IReadUtils;
import org.qs.webservice.util.StringUtils;
import org.qs.webservice.vo.Book;
import org.qs.webservice.vo.BookReview;
import org.qs.webservice.vo.BookReviewReply;
import org.qs.webservice.vo.Content;
import org.qs.webservice.vo.PageData;
import org.springframework.stereotype.Service;


@Service
public class AlipayServiceImpl implements AlipayService {
	@Resource
	private IreadMemcacheService ireadMemcacheService;
	@Override
	public  HashMap<String,Object> addOrder(String device_identifier, String token, int type) {
		HashMap<String,Object> model = new HashMap<String,Object>();
		String user_id = IReadUtils.getUserIdByToken(token, ireadMemcacheService, device_identifier);
		if(!StringUtils.isNullOrEmpty(user_id)){
			
		}
		model.put("WIDout_trade_no", "WIDout_trade_no");   
		model.put("WIDsubject", "test");   
		model.put("WIDtotal_fee", "WIDtotal_fee");   
		model.put("WIDbody", "WIDbody");   
		return model;
	}

	
	
}
